fixed some functions of f3