change List methods into functions