added prototype for entity