add new function for entity