proof of concept logic working fine