debuged version FunctionalityEntity