Problem: code isn't setting mechanism to CURVE properly