first attempt at dynamic number of parameters (keys)