added slopes && other fixes