fixed duplicate function error for gem