code generating the spring response for two supports