removed gcc warnings (unused return value)