fixed indention error
changed to allow easier testing for glass
moved for easier importing. will create a package later