calling overlay method from one file instead of several