updated springs code abit