minor refactoring
support drawing details