mongodb con limit problem fixed
code optimization