replace ready event