modifying predict script in an attempt to debug