Same as mentioned in previous comment. using the enum here would be cleaner I think instead of using magic numbers :)