works perfectly as represented