changed assignmentFileGateway to static method