moved from array tools to list and added type check for list items to