fixed function parameter, list appending, and return values