this seems to be a better way...