almost there, just need to fix max times
still almost there