function deleted

This is just a code refactor