improve void function check, remove check with false-pos