added check for max vel and accel violation