refactor docus