solved
here for those who curious
ignore the dumb logic, i am just showing how to customize the function