removed code which is executing twice