updated execute parsing code