fixed smellie calling function