testing new check function