removed erroneous functions