masonry only works if jquery is called twice

figured it out, turns out i was missing wp_footer() in my footer, once i added that i was able to solve my problem. thanks for the help