added type to BaseReference