added a limit to select

added a limit to select