for correct placement of condition