check for function