refactor to better mirror effect, updated formatting.