Yeah there might be a better way to do it but I just went with what was already there and know to work.