removed double function