fixing all list functions