modularization of code