commiting helper function for s finding, and eval1 script