changed the names of some variables for more ellaboration