added name for 2nd sp feature
introduced z terms into the offset feature calculation