first step in modularising the module