edited moveobject constructor