working on saving events