/bin/sh do not recognize 'function'