implemented operations 6,7