added modified check functionality