use external helper file, it works now