minor refactor
date edit