prob2 now right
top was hardcoded to 1000 in one place