got code working on laptop