added a function & cleaned up for the night