changed inputType to an enum so no longer get warnings