greap code edited