fixed warning "unused value"