added member method to entity class