take care not to append nil values