changes for laptop - some floats to doubles and use of delta instead of angleDelta