removed sp macro is it messes with QT variable defenitions