almost perfect bug1