better space complexity