changed position delete functions