put it all inside the document ready function