implemented lacking block for functions that handles list and iterator