reconstruct code to fullfill test cases