small changes to source