functions without parameters bug fix