added module logic