trying to work logic for net