add ssq magic function(not complete)