fixed bug

removed double function declaration