implementation of sqmarket