removed a function declared twice