entity & attribute working