Put var declaration in correct spot