bugbfix for beta
fixed funciton call