doing some formatting; need to cleanup event callback