refactoring and objectifying message instantian with hash's