bug fix to previous commit