add lab sort & hashing