added rotation for entities