only allowing specific inputs based on some paramters