added method cars in rect