makes minor style updates to S3 logic