condition on req methods fix