added linTranslateRight and linTranslateleft functions