bug fix in my org function