replaced moving header pos by a var