added field LIMIT_NUM
formatted code
changed test hard code for test case