cleaned up a bit. commented.