use tr instead of gsub. define roofpig starting orientation.