changed from hash to datamapper