cleaned up code notes