removed accidentally added duplicate code