change drawing method
add pseudo code