corrected for missing + signs