removed unused-result warnings