removed a duplicate function