removed array map function