added unused user function detector