bit of slope calc...