switching to case for easier readability

switching to case for easier readability