add function to list and resolve collisions
add function to list and resolve collisions