updated getanovafunction for better usability