F: fix functions