deserializator refactoring
adding user method for deserialization