added states and renamed state_date to start_date
REMOVED SCRIPT ERRORS