refactored the loading on init instead of inside a method