Change code by adding rotation to all methods