add spring logic