made the aggregateraster method operational