working, pretty code.