Removed my duplicate function