chkall function rule