code 2nd option for trying to figure out answer