WTI crude pares some gains after crossing above $40 a barrel