removed superfluous function