fix issues with array methods by providing another method