remove unused duplicate function