added reveresed $ g$ etc commands