solved problem using expand grid