entries function added