simplify and alter script for use by students in lab setting