add masspoint as input argument