fixed typo and extracted constant