initial values were not getting set correctly
dist