addition of orientation variable