moving function and complete edit of expences