changing code little