SQAP Revised version