remove clone as not library function
add preliminary map function