fixed bug in naming of a function