check inputs with is_a? instead of checking rangy?