just tinkering with the code trying to figure out how to reduce the lag