change ready function to fh.ready function