Module categories - code optimalization