work on initial load