lab11 minus functions