Wrong place code must move few lines below