a small piece of terrible code