switched to the POSIX-syntax for functions, for broader compatability