add more functions; centering is working