add check for function