adding new functions in arrayFactory