update some aux functions