refactored the script for 200s