function f behaves under osx