removed duplicate functions.