bug fix for coding