error return value is unnecessary