added code to subtract