add debug methods
refactor constant