discovered and fixed bug