fixed polymorfism error