bug fix for Alex part two