more descriptive comment
refactor to case statement