move constants to top