Update compile

check for validity