fixed an error with limits, also changed printouts a bit