slight modif on ft_error