added -limit flag
fix formatting