appliying code review comments