removed requirement for array in input