adding enitities functionality