added already-declared function validation