refactoring create object + add lib string and hash to_symbol