integrated spark functions together