check for function not file