remove code duplication, define a function to request data from MALMan
rename variables for clarity