Updated dp and sp