added remove and flip axis functionality