deleted code snipits. cleaned up the code