fixing bugs with hints