working code as of the 21st