fix unused value warning