added function to increase modularity