fixed shape function for g0, v ; improved messages