wow i write terrible code.