added rotation to elements(not finished)