updated blank saving. needs optimization