added 3rd and 4th bugs