retrun entity object