remove:check function