use enum type instead of int

Signed-off-by: Andre Dublin <81dublin@gmail.com>
use constants

Signed-off-by: Andre Dublin <81dublin@gmail.com>