added create and returnobject method