move variables above