fixed logic errors affecting deleting from middle and beginning of metaData list, error still remains from deleting from end