function call bugfix