modification done to FrameCreater.java