fixed broken function call