latest code as of 4:14AM