persisted calculations working