added paulas new code