small changes in code