wow this got ugly