removed duplicate source code