Messed up Jordans code