refactored rect variable names
refactored rect variable names