possibly better way to do it ...