adds public and private space to module pattern