debugging why results are showing before execution