changed ready function
changed ready function 2