improve limit statement