fixed regression in getSample and removed LIMIT statements