fixed declare as entity