modules optimization - private and revealing