avoid using [] operator and change variable names