modified in function reply