Put declare statement to a right spot.