package : add return error in checks