begin to change from hardcoded to loop