code to load integers written