minus function implemented