building objects from hash now