revised total guess method, added attr_atribute