maybe this is the way to do it?