deleted some unused functions