added mass and maine to redraw function