got back to this mini-project and cleaned up a bit, it works