slopes now work and removed unwanted comments