taking if condition out.