new refine entry for the atan2 function

- This resolves #8272
- This is linked with the previous PR #8273
Agree the code look much nicer with this modification