refactored getRecord to run with any week number