actually working and only somewhat unreadable