fix duplicate function syntax