incremental adjustments to the attitude engine and magic number replacement