Teleport entity to entity and then rotate first entity

Okay so currently i have this linking system setup and am teleporting a marker to another entity each tick. I now want to rotate the marker which i tried using tp @s ~ ~ ~ ~20 ~20 but apparently that doesn't work and just results in the marker not rotating. i think this happens because of rotation resetting when you teleport an entity to another one so i am wondering if there is any way to bypass this
Continue to help post