moved function from User to Message