forgot to remove print debug statements, very shameful