changes in logic after talking with Surya