working on some sorting hat things