store method key value in variable, remove hardcode