added a priori limits to script